package Logic;
import Dao.TeacherDAO;
import Model.TeacherBean;
 
//业务逻辑层
public class TeacherLogic{    
    
    // 添加新的教练
    public boolean addTeacher(TeacherBean teacher){
        boolean result = false;
        try{
        	TeacherDAO teacherdao = new TeacherDAO();
        	teacherdao.insertTeacher(teacher);
            result = true;
        }catch (Exception e){
            e.getMessage();
            result = false;
        }
        return result;
    }  
}